/**
 * 
 */
package com.gametheoryserver.gui.sum.state;

import com.gametheoryserver.gui.sum.PlaySumGame;

/**
 * @author Tomas Barak
 * 
 */
public class RemoveAllGamesState implements ISumGameState {

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.gametheoryserver.gui.sum.state.ISumGameState#refreshGame(com.gametheoryserver.gui.sum.PlaySumGame)
	 */
	@Override
	public void refreshGame(PlaySumGame playSum) {
		playSum.getInfoLayoutList().clear();
		playSum.getGamesList().clear();
		playSum.setGameNumber(1);
		playSum.repaintInfo();
		playSum.getStartBtn().setEnabled(false);
	}

}
